import Login from '../pages/login/login.vue'
import Home from '../pages/home/home.vue'
import Index from '../pages/index/index.vue'
import Scene from '../pages/scene/scene.vue'
import Mine from '../pages/mine/mine.vue'
import Task from '../pages/task/task.vue'
import Page404 from '../pages/page404/index.vue'
import Child from '../pages/child/child.vue'
import Check from '../pages/check/check.vue'
import Financing from '../pages/buni/financing.vue'
import ComInfo from '../pages/buni/comInfo.vue'
import Contacts from '../pages/buni/contacts.vue'
import Upload from '../pages/buni/upload.vue'
import Authorization from '../pages/buni/authorization.vue'
const routes = [{
        path: '/login',
        component: Login
    },
    {
        name: 'home',
        path: '/home',
        component: Home,
        children: [{
            name: 'index',
            path: 'index',
            component: Index
        }, {
            name: 'task',
            path: 'task',
            component: Task
        }, {
            name: 'scene',
            path: 'scene',
            component: Scene
        }, {
            name: 'mine',
            path: 'mine',
            component: Mine
        }, {
            path: '/',
            redirect: 'index'
        }]
    },
    {
        path:"/child",
		name: 'child',
		title:'春风探企',
        component: Child,
		meta: {
		    title: '春风探企',
		},
    },
	{
	    path:"/check",
		name: 'check',
	    component: Check,
		meta: {
		    title: '春风探企',
		},
	},
	/* 融资需求 */
	{
	    path:"/financing",
		name: 'financing',
	    component: Financing ,
		meta: {
		    title: '融资需求',
		},
	},
	/* 企业基本信息 */
	{
	    path:"/comInfo",
		name: 'comInfo',
	    component: ComInfo,
		meta: {
		    title: '企业基本信息',
		},
	},
	/* 联系人信息 */
	{
	    path:"/contacts",
		name: 'contacts',
	    component: Contacts,
		meta: {
		    title: '联系人信息',
		},
	},
	/* 上传证件 */
	{
	    path:"/upload",
		name: 'upload',
	    component: Upload,
		meta: {
		    title: '上传证件',
		},
	},
	/* 生成授权书 */
	{
	    path:"/authorization",
		name: 'authorization',
	    component: Authorization ,
		meta: {
		    title: '生成授权书',
		},
	},
    {
        path: '/',
        component: Login
    },
    {
        path: '*',
        component: Page404 //404页面
    }
]

export default routes